.TH std::ranges::stride_view::stride 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::ranges::stride_view::stride \- std::ranges::stride_view::stride

.SH Synopsis
   constexpr ranges::range_difference_t<_Vp> stride() const noexcept;  (since C++23)

   Returns a copy of the underlying stride object stride_. Equivalent to return
   stride_;.

.SH Parameters

   \fI(none)\fP

.SH Return value

   The stride value.

.SH Example


// Run this code

 #include <ranges>

 int main()
 {
     constexpr auto view = std::views::iota(1337)
                         | std::views::stride(42);
     static_assert(view.stride() == 42);
 }
